﻿@namespace SE.PO.CInterface.Web.Pages.DB.Device
@using SE.PO.CInterface.Web.Clients
@inject DeviceClient Client
@inject SignalsCodingClient SignalsCodingClient
@using SE.PO.CInterface.Web.Pages.DB.Components
@using SE.PO.CInterface.Enums
@using SE.PO.CInterface.Web.Clients.CuCoding
@inject INotificationService Notice
<Row Gutter="24">
    <GridCol Span="8">
        <Form
            Model="@Model"
            Style="margin-top: 8px;"
            OnFinish="OnFinish"
            OnFinishFailed="OnFinishFailed"
            Class="ant-advanced-search-form"
            @ref="@Form">

            <FormItem Label="下级SCID" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
                <Input Placeholder="SC编码，下级SCID" style="width: 220px;" @bind-Value="@context.ScId"/>
            </FormItem>

            <FormItem Required Label="站点" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
                 <SelectSite Model="@Model"></SelectSite>
            </FormItem>
            <FormItem Required Label="机房" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
               <SelectRoom Model="@Model"></SelectRoom>
            </FormItem>

            <FormItem Required Label="监控单元" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
                <SelectSU Model="@Model"></SelectSU>
            </FormItem>
            <FormItem Label="设备类型" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
                 <SelectDeviceType Model="@Model" SelectDeviceTypeChanged="async (s) => { await GetDeviceSourceByTypeAsync(s); }"></SelectDeviceType>
            </FormItem>
            
        </Form>
    </GridCol>
    <GridCol Span="16">
        <SelectEquips  @ref="_selectEquips"></SelectEquips>
    </GridCol>
</Row>